package com.qiyu.tech.tcc.starter.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 用户信息
 *
 * @author linhao
 * @date created in 8:05 下午 2020/11/3
 */
@TableName(value = "t_user")
public class User {

    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     * 券数目 购买了商品之后 会送1张券
     */
    private Integer couponNum;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCouponNum() {
        return couponNum;
    }

    public void setCouponNum(Integer couponNum) {
        this.couponNum = couponNum;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", couponNum=" + couponNum +
                '}';
    }

}
